package com.edt.ichannel.api.dao;

import com.edt.ichannel.api.entiy.local.FlowExchangeLog;
import com.edt.ichannel.api.entiy.local.FlowExchangeLogDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 肖瑶
 */
public interface FlowExchangeLogDao {
    /**
     * 保存流量充值结果记录
     * @param flowExchangeLog 流量充值结果实体
     */
    void saveFlowExchangeLog(FlowExchangeLog flowExchangeLog);

    /**
     * 通过渠道ID和充值手机号查询记录
     * @param mechanismsId 渠道ID
     * @param phone 充值手机号
     * @return 返回值
     */
    List<FlowExchangeLogDetail> getFlowExchangeLogByCondition(@Param("mechanismsId") String mechanismsId, @Param("phone") String phone);
}
